﻿using Himp.Base;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Domain.Services;

namespace Himp.Outpatient
{
    /// <summary>
    /// 门诊挂号
    /// </summary>
    public class OtpRgstManager : DomainService
    {
        public OtpRgstRec CreateOtpRgst(string setlTypeCode, string setlTypeName, Guid? patnId, int age, EnumGender gender, string? otpNo
            , string patnName, Guid otpSchdRecId, Guid? otpSchdRecDetlId, Guid otpRgstTypeId
            , DateTime rgstDate, string deptCodg, string deptName, string? drCodg, string? drName
            , string mdtrtCertTypeCode, string mdtrtCertNo)
        {
            string mdtrtSn = Guid.NewGuid().ToString(); //就医流水号
            var optReg = new OtpRgstRec(mdtrtSn, setlTypeCode, setlTypeName, patnId, age, gender, otpNo
                , patnName, otpSchdRecId, otpSchdRecDetlId, otpRgstTypeId, rgstDate, deptCodg, deptName, drCodg,  drName
                , mdtrtCertTypeCode, mdtrtCertNo);

            return optReg;
        }
    }
}
